<<<<<<< .mine
<?php echo form_open('costumers/flight') ?>

<!--Sekali Jalan <input type="radio" name="select" value="sekali_jalan" checked="checked" onFocus="hidelayer('dateLayer');return ture;" />
Pulang Pergi <input type="radio" name="select" value="pulang_pergi" onFocus="showlayer('dateLayer');return false;" />-->

<p>
    Keberangkatan  <br /><?php echo form_dropdown('from', $options); ?><br />
    Kedatangan <br /> <?php echo form_dropdown('to', $options); ?><br />

    Pergi <br /><input id="tanggal" name="date" type="text"><br />
    
<!--    <div id="dateLayer" style="display:none;">
        Pulang <br /><input type="text" name="pulang" id="datepicker2" /> <br />
    </div>-->

<?php $adult = array('1' => '1', '2' => '2', '3' => '3', '4' => '4',) ?>
<?php $child = array('0' => '0', '1' => '1', '2' => '2', '3' => '3', '4' => '4') ?>
<?php $infant = array('0' => '0', '1' => '1', '2' => '2', '3' => '3', '4' => '4') ?>
Adult <br /><?php echo form_dropdown('adult_post', $adult); ?> <br />
Child <br /><?php echo form_dropdown('child_post', $child); ?> <br />
Infant <br /><?php echo form_dropdown('infant_post', $infant); ?> <br />
Maskapai
<br /> <?php echo form_dropdown('id_maskapai', $maskapai); ?>

<?php echo form_submit('submit', 'Go', "class=button") ?></p>

<?php echo form_close() ?>

<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.8.3.js"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css" />

<script>
    $(function() {
        $( "#datepicker" ).datepicker({ dateFormat: 'yy-mm-dd' });
    });
    
    $(function() {
        $( "#datepicker2" ).datepicker({ dateFormat: 'yy-mm-dd' });
    });
    
    function showlayer(whichLayer) {
        document.getElementById(whichLayer).style.display = 'block';
    }

    function hidelayer(whichLayer) {
        document.getElementById(whichLayer).style.display = 'none';
//        $('input[name=pulang]').val();
        $( "#datepicker2" ).val("");
    }
</script>
=======
<?php echo form_open('costumers/flight') ?>

<!--Sekali Jalan <input type="radio" name="select" value="sekali_jalan" checked="checked" onFocus="hidelayer('dateLayer');return ture;" />
Pulang Pergi <input type="radio" name="select" value="pulang_pergi" onFocus="showlayer('dateLayer');return false;" />-->

<p>
    Keberangkatan  <br /><?php echo form_dropdown('from', $options); ?><br />
    Kedatangan <br /> <?php echo form_dropdown('to', $options); ?><br />

    Pergi <br /><input type="text" name="date"  id="datepicker" /> <br />
    <div id="dateLayer" style="display:none;">
        Pulang <br /><input type="text" name="pulang" class="span2" id="datepicker2" /> <br />
    </div>


<?php $adult = array('1' => '1', '2' => '2', '3' => '3', '4' => '4',) ?>
<?php $child = array('0' => '0', '1' => '1', '2' => '2', '3' => '3', '4' => '4') ?>
<?php $infant = array('0' => '0', '1' => '1', '2' => '2', '3' => '3', '4' => '4') ?>
Adult <br /><?php echo form_dropdown('adult_post', $adult); ?> <br />
Child <br /><?php echo form_dropdown('child_post', $child); ?> <br />
Infant <br /><?php echo form_dropdown('infant_post', $infant); ?> <br />
Maskapai
<br /> <?php echo form_dropdown('id_maskapai', $maskapai); ?>

<?php echo form_submit('submit', 'Go', "class=button") ?></p>

<?php echo form_close() ?>

<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.8.3.js"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css" />

<script>
    $(function() {
        $( "#datepicker" ).datepicker({ dateFormat: 'yy-mm-dd' });
    });
    
    $(function() {
        $( "#datepicker2" ).datepicker({ dateFormat: 'yy-mm-dd' });
    });
    
    function showlayer(whichLayer) {
        document.getElementById(whichLayer).style.display = 'block';
    }

    function hidelayer(whichLayer) {
        document.getElementById(whichLayer).style.display = 'none';
//        $('input[name=pulang]').val();
        $( "#datepicker2" ).val("");
    }
</script>
>>>>>>> .r24
